<?php
/**
 * 设置redis中data:city,city:$cityid的地理数据
*/
class Location extends Base_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->model('location_model');
    }

    public function saveToRedis()
    {
        $this->location_model->saveLocDataToRedis();
        $this->success();
    }

    public function delFromRedis()
    {
        $this->location_model->delLocData();
        $this->success();
    }

}